package javaday02;

import java.util.Random;

public class Homework1Shufflearray {
	public static void main(String args[]){
		int arrA[][] ={{1,2},{3,4},{5,6}};
		Random random = new Random();
		int indexi,indexj;
		for(int i=0;i<arrA.length;i++){
			for(int j=0;j<arrA[i].length;j++){
				indexi = random.nextInt(arrA.length);
				indexj = random.nextInt(arrA[i].length);
				
				int temp=arrA[i][j];
				arrA[i][j]=arrA[indexi][indexj];
				arrA[indexi][indexj]=temp;
			}
		}
		for(int i=0;i<arrA.length;i++){
			for(int j=0;j<arrA[i].length;j++){
				System.out.print(arrA[i][j]+" ");
			}
			System.out.println();
		}
	}
}
